#include <EXTERN.h>
#include <perl.h>

int main(int argc, char** argv, char** env) {
   PerlInterpreter *my_perl;
   /* we pass a dummy argv[0] */
   char *switches[] = {"", "-v"};
   my_perl = perl_alloc();
   perl_construct(my_perl);
   perl_parse(my_perl, NULL, 2, switches, (char**)NULL);
   perl_run(my_perl);
   perl_destruct(my_perl);
   perl_free(my_perl);
}
